<?php
/**
 * Created by JetBrains PhpStorm.
 * User: ishowshao
 * Date: 12-12-11
 * Time: 上午1:06
 * To change this template use File | Settings | File Templates.
 */
session_set_cookie_params(3600 * 24);
session_start();
file_put_contents('log.txt', print_r($_SESSION, true));
$output = array(
    'success' => !empty($_SESSION['username']),
);
echo json_encode($output);
